#ifndef FRIENDMANAGER_H
#define FRIENDMANAGER_H

#include <QObject>
#include "friendaddfriendrequest.h"

namespace Friend{

class Manager : public QObject
{
    Q_OBJECT
public:
    explicit Manager(QObject *parent = 0);

    void addFriendRequest(const QString& userName, const QString& message);

    static Manager *instance(QObject *parent = 0);
signals:
    void responseCodeAddFriendRequest(int codeError);

public slots:

    void onAddFriendRequestResponse(Network::HttpRequest *request);

public:


private:
    static Manager *m_instance;


};

}
#endif // FRIENDMANAGER_H
